package cn.cms.service;

import cn.cms.dao.PageDao;
import cn.cms.dao.SysLogDao;
import cn.cms.model.SysLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysLogService {

    @Autowired
    public SysLogDao systemLogDao;

    public void save(SysLog sysLog) {
        systemLogDao.save(sysLog);
    }

    public List<SysLog> getListPage(PageDao pageDao, String temple, String keyWords, String type, String startTime, String endTime) {
        return systemLogDao.getList(pageDao, temple, keyWords, type, startTime, endTime);
    }
}
